﻿using BCCommon;
using BCDto.OA.BusinessFlowRecord;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.OA.BusinessFlowRecord
{
    /// <summary>
    /// OA系统业务流记录
    /// </summary>
	public interface IBusinessFlowRecordService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="businessFlowRecordId">OA系统业务流记录Id</param>
        bool Exists(long businessFlowRecordId);
        /// <summary>
        /// 添加OA系统业务流记录
        /// </summary>
        /// <param name="requestDto">OA系统业务流记录信息</param>
        BusinessFlowRecordDto Add(BusinessFlowRecordRequestDto requestDto);
        /// <summary>
        /// 更新OA系统业务流记录
        /// </summary>
        /// <param name="putDto">OA系统业务流记录信息</param>
        BusinessFlowRecordDto Update(BusinessFlowRecordPutDto putDto);
        /// <summary>
        /// 删除OA系统业务流记录
        /// </summary>
        /// <param name="businessFlowRecordId">OA系统业务流记录Id</param>
        bool Delete(long businessFlowRecordId);
        /// <summary>
        /// 获取OA系统业务流记录
        /// </summary>
        /// <param name="businessFlowRecordId">OA系统业务流记录Id</param>
        BusinessFlowRecordDto GetEntity(long businessFlowRecordId);
        /// <summary>
        /// 获取OA系统业务流记录列表
        /// </summary>
        IEnumerable<BusinessFlowRecordDto> GetList();
        /// <summary>
        /// 获取OA系统业务流记录分页列表
        /// </summary>
        /// <param name="businessFlowModelCode">业务流模型编码</param>
        /// <param name="referenceNo">引用编号</param>
        /// <param name="isInitialized">已初始化完成的</param>
        /// <param name="isInitFailed">初始化失败的</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">OA系统业务流记录每页数据条数</param>
        PageableList<BusinessFlowRecordDto> Query(string businessFlowModelCode, string referenceNo, bool? isInitialized, bool? isInitFailed, DateTime? start, DateTime? end, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}
